<input />
<script>
  document.querySelector('input').focus();
</script>
